//
//  CardFormViewController.h
//  MoneyBook
//
//  Created by MyoungHo Kim on 11. 7. 11..
//  Copyright 2011 Daum. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "SQLHandler.h"
#import "PayPickerViewController.h"

@interface CardFormViewController : UIViewController {
    NSNumber* _cardId;
    NSNumber* _bankId;
//    NSNumber* _startDay;
//    NSNumber* _endDay;
//    NSNumber* _payDay;
    
    UITextField *_cardTitle;
    UITextField* _startDayTextField;
    UITextField* _endDayTextField;
    UITextField* _payDayTextField;
    UIButton* _bankBtn;    
    UISwitch *_defaultSwitch;
    
    UIImage *_numberPadDoneImageNormal;
    UIImage *_numberPadDoneImageHighlighted;
    UIButton *_numberPadDoneButton;

    BOOL _isCreateMode;
}
@property (nonatomic, retain) NSNumber *cardId;
@property (nonatomic, retain) NSNumber *bankId;
//@property (nonatomic, retain) NSNumber *startDay;
//@property (nonatomic, retain) NSNumber *endDay;
//@property (nonatomic, retain) NSNumber *payDay;

@property (nonatomic, retain) IBOutlet UITextField *cardTitle;
@property (nonatomic, retain) IBOutlet UITextField *startDayTextField;
@property (nonatomic, retain) IBOutlet UITextField *endDayTextField;
@property (nonatomic, retain) IBOutlet UITextField *payDayTextField;
@property (nonatomic, retain) IBOutlet UIButton *bankBtn;
@property (nonatomic, retain) IBOutlet UISwitch *defaultSwitch;



@property (nonatomic, retain) UIImage *numberPadDoneImageNormal;
@property (nonatomic, retain) UIImage *numberPadDoneImageHighlighted;
@property (nonatomic, retain) UIButton *numberPadDoneButton;


-(void)createMode;
-(void)loadCard:(NSNumber*)cardId;
- (IBAction)btnAction:(id)sender;
- (IBAction)numberPadDoneButton:(id)sender;

@end
